import axios from '~/axios.js'

//获取操作日志列表
export function getPageOperatorLogListApi(params) {
    return axios({
        method: 'GET',
        url: '/basic/operatorlog/getPageOperatorLogList',
        params: params
    })
}

//获取操作日志详情
export function getOperatorLogByOperatorLogIdApi(operatorLogId) {
    return axios.get(`/basic/operatorlog/getOperatorLogByOperatorLogId/${operatorLogId}`)
}

//删除操作日志
export function deleteOperatorLogByOperatorLogIdApi(operatorLogId) {
    return axios({
        method: 'DELETE',
        url: '/basic/operatorlog/deleteOperatorLogByOperatorLogId',
        params: {
            operatorLogId: operatorLogId
        }
    })
}

//批量删除操作日志
export function deleteOperatorLogByOperatorLogIdsApi(operatorLogIds) {
    return axios.post('/basic/operatorlog/deleteOperatorLogByOperatorLogIds', operatorLogIds)
}